package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_pms_lxfs database table.
 * 
 */
@Entity
@Table(name="per_pms_lxfs")
@NamedQuery(name="PerPmsLxfs.findAll", query="SELECT p FROM PerPmsLxfs p")
public class PerPmsLxfs implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int lxfsid;

	private String lxfs;

	//bi-directional many-to-one association to PerPmsEmplx
	@OneToMany(mappedBy="perPmsLxf")
	private List<PerPmsEmplx> perPmsEmplxs;

	public PerPmsLxfs() {
	}

	public int getLxfsid() {
		return this.lxfsid;
	}

	public void setLxfsid(int lxfsid) {
		this.lxfsid = lxfsid;
	}

	public String getLxfs() {
		return this.lxfs;
	}

	public void setLxfs(String lxfs) {
		this.lxfs = lxfs;
	}

	public List<PerPmsEmplx> getPerPmsEmplxs() {
		return this.perPmsEmplxs;
	}

	public void setPerPmsEmplxs(List<PerPmsEmplx> perPmsEmplxs) {
		this.perPmsEmplxs = perPmsEmplxs;
	}

	public PerPmsEmplx addPerPmsEmplx(PerPmsEmplx perPmsEmplx) {
		getPerPmsEmplxs().add(perPmsEmplx);
		perPmsEmplx.setPerPmsLxf(this);

		return perPmsEmplx;
	}

	public PerPmsEmplx removePerPmsEmplx(PerPmsEmplx perPmsEmplx) {
		getPerPmsEmplxs().remove(perPmsEmplx);
		perPmsEmplx.setPerPmsLxf(null);

		return perPmsEmplx;
	}

}